<?php
class Admin_Form_InsertManufacture extends Zend_Form{
	public function init(){
		$this->setAttrib('id', 'frmAdminForm');
		
		$manufacture_id = $this->createElement('hidden', 'manufacture_id');
		
		$manufacture_name = $this->createElement('text', 'manufacture_name');
		$manufacture_name->setLabel('Hãng sản xuất')->setRequired(true);
		
		$manufacture_summary_vi = $this->createElement('textarea', 'manufacture_summary_vi');
		$manufacture_summary_vi->setLabel('Tóm tắt tiếng việt');
		
		$manufacture_summary_en = $this->createElement('textarea', 'manufacture_summary_en');
		$manufacture_summary_en->setLabel('Tóm tắt tiếng anh');
		
		
		$this->addElements(array(
				$manufacture_name,
				$manufacture_summary_vi,
				$manufacture_summary_en
		));
		
		$this->addDisplayGroup(array(
				$manufacture_name,
				$manufacture_summary_vi,
				$manufacture_summary_en
		), 'detail-info',array('legend'=>'Thông tin chi tiết','class'=>'display-group'));
		
		
	}
}